package com.wryyyyy.repository;

import com.wryyyyy.entity.Space;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface SpaceRepository extends MongoRepository<Space, String> {
    /**
     * 根据工厂id查询
     * @param factoryId 工厂id
     * @return space
     */
    Space findByFactoryId(String factoryId);
}
